package com.webservice;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
 
@ManagedBean
@SessionScoped
public class NavigationBean implements Serializable {
 
    private static final long serialVersionUID = 1520318172495977648L;
 
    public String redirectToLogin() {
        return "/index.xhtml?faces-redirect=true";
    }
    
    public String redirectToRegistration() {
        return "/register.xhtml?faces-redirect=true";
    }
     
    public String toLogin() {
        return "/index.xhtml";
    }
     
    public String redirectToInfo() {
        return "/info.xhtml?faces-redirect=true";
    }

    public String toInfo() {
        return "/info.xhtml";
    }
     
    public String redirectToWelcome() {
        return "/index.xhtml?faces-redirect=true";
    }
     
    public String toWelcome() {
        return "/index.xhtml";
    }

    public String forgotPassword() {
        return "/forgotPassword.xhtml";
    }
}